package jm.algorithm.tools;

public class Asserts {
	public static void test(boolean value) {
		try {
			if (!value) {
				throw new Exception("测试未通过");
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public static void test(boolean value, String className) {
		try {
			if (!value) {
				throw new Exception("【" + className + "】" + "测试未通过");
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
